package cn.itsource.org.service;

import cn.itsource.basic.utils.AjaxResult;
import cn.itsource.basic.utils.PageResult;
import cn.itsource.org.domain.Shop;
import cn.itsource.org.domain.ShopAuditLog;
import cn.itsource.org.query.ShopQuery;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface ShopService {
    List<Shop> findAll();

    Shop findOne(Long id);

    void add(Shop shop);

    void update(Shop shop);

    void delete(Long id);

    void patchdel(Long[] ids);

    PageResult<Shop> queryPage(ShopQuery ShopQuery);

    //店铺入住信息添加
    AjaxResult settlement(Shop shop);

    //店铺审核通过
    AjaxResult auditPass(ShopAuditLog shopAuditLog);

    //店铺审核驳回
    AjaxResult auditReject(ShopAuditLog shopAuditLog);

    //在qq邮箱激活店铺
    void activation(Long id, HttpServletResponse response);


    // 柱状图
    List<Shop> columnChart();

    //导入excel数据 批量添加
    void addBatch(List<Shop> shops);
}

